#include<stdio.h>
int main()
{
	int i,j,n,a=65,m;
	while(~scanf("%d",&n))
	{
		for(i=1;i<=n;i++)
		{
			m=i+1;
			for(j=0;j<=n-i;j++)
			{
				printf("%c",a);
				a+=m;
				m+=1;
			}
			printf("\n"); 
			a=65+i*(i+1)/2;
		}
		printf("\n");
		a=65;
	}
}
